<?php
namespace ImiApp\Module\Member\Model\Base;

use Imi\Model\Model as Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 信息置顶价格设置 基类
 * @Entity
 * @Table(name="fa_adv_top_price", id={"id"})
 * @DDL("CREATE TABLE `fa_adv_top_price` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `price` decimal(10,2) unsigned DEFAULT NULL COMMENT '价格',
  `time_status` enum('1','2','3','4') DEFAULT NULL COMMENT '时间类型:1=小时,2=天,3=月,4=年',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='信息置顶价格设置'")
 * @property int $id 
 * @property float $price 价格
 * @property string $timeStatus 时间类型:1=小时,2=天,3=月,4=年
 */
abstract class AdvTopPriceBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * 价格
     * price
     * @Column(name="price", type="decimal", length=10, accuracy=2, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var float
     */
    protected $price;

    /**
     * 获取 price - 价格
     *
     * @return float
     */ 
    public function getPrice()
    {
        return $this->price;
    }

    /**
     * 赋值 price - 价格
     * @param float $price price
     * @return static
     */ 
    public function setPrice($price)
    {
        $this->price = $price;
        return $this;
    }

    /**
     * 时间类型:1=小时,2=天,3=月,4=年
     * time_status
     * @Column(name="time_status", type="enum", length=0, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $timeStatus;

    /**
     * 获取 timeStatus - 时间类型:1=小时,2=天,3=月,4=年
     *
     * @return string
     */ 
    public function getTimeStatus()
    {
        return $this->timeStatus;
    }

    /**
     * 赋值 timeStatus - 时间类型:1=小时,2=天,3=月,4=年
     * @param string $timeStatus time_status
     * @return static
     */ 
    public function setTimeStatus($timeStatus)
    {
        $this->timeStatus = $timeStatus;
        return $this;
    }

}
